#include <stdio.h>
#include <math.h>
int main()
{
    int integer, i, max, min, sum;
    max = -32768;
    min = 32767;
    sum = 0;
    for (i = 1; i <= 10; i++)
    {
        printf("input number %d =", i);
        scanf("%d", &integer);
        sum += integer;
        if (integer > max)
            max = integer;
        if (integer < min)
            min = integer;
    }
    printf("canceled max score:%d\n cancelede min score:%d\n", max, min);
    printf(" average score:%d\n", (sum - max - min) / 8);
    return 0;
}